package com.eleme.food.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eleme.food.entity.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 食品表Mapper
 */
@Mapper
@Repository
public interface FoodMapper extends BaseMapper<Food> {
    @Select("select * from food where businessId=#{businessId} order by foodId")
    List<Food> listFoodByBusinessId(Integer businessId);
    @Select("select * from food where foodId=#{foodId}")
    Food getFoodById(Integer foodId);
} 